Fixes for $TERM to work with and without tmux!