Fix for network detection on non-linux OSes