Check for the existence of the git directory on startup.