fix $TERM checking in tmux