Flush logs after each line in runner

* Scripts that time out my not write script.log without flush.