Removed bashisms from run.sh