implement fnmatch style pattern matching of mimetypes