Corrects issue with collectd[:version] being misapplied for package installations

Package installations for RHEL & Ubuntu still install collectd4, despite the default collectd[:version] = "5.1.0" in attributes. This causes at least write_graphite to behave incorrectly.

This PR corrects this and adds tests.