Fix 'hostname -s' errors on Windows