Only update $TERM if the term-type is "xterm"