make mime_type_plaindetect work in .phar files