switch from wget to curl

Since `wget` isn’t installed on OS X by default, I’ve replaced it with an equivalent `curl` command.