Fix quality score

Addresses a good part of the warnings generated by puppet-lint. No functional changes.