check for git directory