Fixes issue with with Puppet 3+ calling custom functions.