root: correctly populate path_list when there is no with_root option enabled