Fix issue with Puppet

  See:
    https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/monkey_patches.rb#L278
Merge pull request #903 from Paulche/fix_puppet_issue

  Fix issue with Puppet