Multiple bashisms in runscript fixed.