Don't assume TERM is defined. Fixes cron builds.