Added tmux detection support