moved git install, removed exec call

apt-get install git needs to be before trying to use git!

exec fails because the script does not have exec permission