Just vendor in the implementation directly from Puppet

It's not glamorous, but it restores function