fix ruby lines error output by moving output sync into its own file