rm: re-use parse_pathspec's trailing-slash removal