Made upgrade_root.bash parametered