base: better match of CMT semantics for path_remove