Any chance that this conversion will be used elsewhere?  Does it belong in the unix.rb instead of the pkg.rb?  Just want to avoid having to go on a search when this needs to be updated.