using if to make upgrade_git.sh more complete