Winrm working

Minor fixes to make library work on Windows 2008 R2 guest. The error handling wasn't properly bubbling up and some of the XML/XPath was incorrect.