Revert "Merge pull request #246 from macbre/runScript-fixes"

This reverts commit 0e95b8b19a5b33f00bb2623f5dc0fe81512c2b69, reversing
changes made to dc7cb092969b772a624574250e6d10ec1197f02e.