Use Array cast and .join method

When using puppet3 and ruby1.9, these changes are needed to compile a catalog.

"try_files" is always set, and defaults to :undef

Cast with Array(), so we always ensure the variable can do .join ( or loops )

Also adds a "-" to the end tags, so we don't insert newlines for each code line