Replace wget with curl, especially for OSX

OSX doesn't ship with wget. Replace with curl, as in previous commits.