Added isGitWorking() method