check if git is installed

Added a if statment wich check that git is installed.
If git is absend the script will stop and tells the user that git is missing.