release: make gitIsGitDirectory do the correct thing