The reason the original didn't use the lib/msf/core/post/windows/priv.rb is to prevent Rex gaining an Msf dependency.