Fix for ruby 1.9

Ruby 1.8 is deprecated. There was changes in method string.to_a -> string.lines.to_a