pathspec: convert some match_pathspec_depth() to ce_path_match()