setup_git_directory(): fix move to worktree toplevel directory