Update appscale_install_functions.sh

Moved upgrade flag to the correct location.