Probably Dir.mkdir should be updated to Puppet::FileSystem.mkpath?