Split apt-get into two steps in install_sge.sh to prevent issues with exec starting before master