be 1.8, 1.9, 2.0, 2.1 compatible

1.8 String#lines returns enumerable
>=1.9 Sting#lines returns array

We need 'string'.lines.to_a to make sure everyone gets array