Update install.sh

Change the git checker to be more thorough.