Fixed bug where external call to runtime.sh would fail repeatedly