fix eshell-git-dir function