More thorough check for git repositories.