added explicit check for tmux when setting term