make mime type detection work on php-fpm which has no PATH env variable