Modified for Windows XP and misc changes

Modified some debug statements to be verbose and ensured double slashes
in query in Get-InstalledSoftware function