Refactoring so that both the scald-repl.sh and test_tutorials.sh can avail of resetting the stty