Remove bashisms from test-script