libwinpr-sysinfo: fix hostname detection