Make IsGit check less strict