Supply TERM=linux if not set.