Fixed test harness shell scripts to also work on OSX platforms