move notest check to end of shortcut_test
fix local::lib shell variable string output

Fixes #64
do not pause if automated testing or STDOUT is not a terminal