Fixes bug that prevents git-buffer-info from finding the git-dir.