use faster futil_paths_remove_basepath