I copied pkgdmg.rb from latest puppet repository