use wget for geoip (comes on Ubuntu server by default); also drop sed