worktree: update is_bare heuristics