device.name fix

device.name wasn't working in the 2.8 branch for Windows 8, it was coming back as "undefined".  This fixes device.name so that it returns the Windows device name (hostname).