clean: replace match_pathspec() with dir_path_match()