Add support for older Puppet versions

Hi!

Had to add some tweaks to allow this provider to work on PE 2.8.x
If it passes your tests, could you please merge?

Regards,
Garagoth.