Use file extensions for MIME lookup before magic lookup