Optimize match_pathspec() to avoid fnmatch()