Fixed support for Ruby 1.8

* Ruby 1.8 does not support this * syntax. Using compact instead.
* Using the YAML constant instead of loading Psych directly. This
  ensures that it works in both Ruby 1.9 and 1.8.