better checking for tmux