simplify constant usage. FILEINFO_MIME_TYPE is available since PHP 5.3.0
fixed missing const argument, when passed magic_file argument fails.