Implement proper check for tmux