Handle tmux & non-tmux in commands