Fix Array#to_s interface change between ruby 1.8 and 2.1

While Array#to_s simply joined the elements under ruby 1.8,
in 2.1 it behaves like inspect.

This breaks the dhcp cookbook helper for substituting the lines.