Specify $TERM in place of assuming it is set to something working

Ref #1104