Check whether git is installed