device.name fix

this fixes device.name is undefined.  This sets the device.name to the
Windows device name.