Added check to ensure git is installed.