Switch TERM depending on the current $TERM setting