fix bashisms in example script