Fix set to prune parent branches in path