Added simple implementation to check if git is installed before
executing commands.