Check for $TERM rather than adding a new env var.