Fixes the serial number retrieval on windows.