Set export TERM=xterm for bash macros that use tput.

Jenkins has TERM=dumb as of recently (which was a bug fix), but
caused this to fail.

Change-Id: Ie7838eb771b5d6c44efe971de8145b4076d6fc1e