Fix: stdout not set in generic scripts.

Thus `print` was not working in e.g Python scripts.