More robust tmux 2-pass detection.