Fixed detection of running tmux