Fix Puppet >=3.2 deprecation warnings. Fixes #9.