Update appscale_install_functions.sh

-y flag for java install.