Fixed and generalized instance WMI namespace detection.