Update ScriptRunner.java

Fixed a bug in "BEGIN" block pattern