Fixed a reference to the wrong stream.
Found two other places writing to the wrong string, preventing plugins from controlling output.
Moved the new reference to the correct stream to below where it actually gets defined.
Merge pull request #171 from CleanCut/horiz-rule-fix

Fix writing to the incorrect stream