Make psexec work on newer Windows with MOF upload

This PR modifies the MOF_UPLOAD method of psexec
so that it works properly on newer versions of windows.