Bug fixes in check_mime_type function