Use curl when wget is not available

Mac OS X doesn't have wget, and has curl by default.