Account for extra whitespace in Ruby 1.8.x

* Due to a different YAML library, the configuration dump will add extra
 spacing which will break when loading the config back. To fix this, we
 just stript out extra white-spacing after the new line-feed and replace
 it with one white space.