check if git is installed

Added a if statment wich check that git is installed.