small optimization
test.sh now accepts test programs with names of varying formats;
also looks for output files of two possible name patterns
test.sh now supports java, shell, and python test programs
debugged changes to test.sh