fix get_device_guid_by_agent_config for win