Added in fix for those still on Ruby 1.8. I now detect the version of Ru...

...by and use the appropriate method on the line. This should fix [this](https://github.com/ttscoff/Slogger/commit/45ffa392166f83232389cfcf41983a165967a90f#commitcomment-3138104) issue for any future users of Slogger.