More flexible mime type checking