test-lib.sh: rename $DTACH_TERM to $SMART_TERM