Flush stdout in script running examples.