Set $stdout.sync = true to better support foreman logging