fixes #4372 - compatibility with Facter 2 API

(cherry picked from commit 7d000cc5566844f5251cf2a85e35a82b4ceeb5d2)
fixes #4301 - specify minimum puppet version of 2.7

(cherry picked from commit ab997094759548fdb65a6c60a831f4b5ecb4c819)