Adds some missing quotes around shell script variables in test scripts.