Add lines alias for each_line in Ruby 1.8.5.
String and IO both have the method lines, an alias for each_line, added in
version 1.8.7; this was used in a few places in the code, and because it is a
simple alias we can easily add it in older versions by hand.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>