Update rebuild_tree.sh