fixes #4372 - compatibility with Facter 2 API
Refs #3308 - Auto-create mappings hash from detected plugin/compute classes