Misc changes

Moved MSI module import into specific functions that need it, added a
function to find the 32 bit registry path and changed Check-Process
function to account for non 0 successful exit codes.