Resolve $GIT_DIR with git-rev-parse