update semantics of PBD::remove_directory()