Make this more portable.

Not all distros use curl by default, some use wget instead.