git-gui: Handle failure of core.worktree to identify the working directory.