prevent errors if run as a cronjob / $TERM is empty