Added autodetection of MD5 checking utility for OSes that do not have md5sum, like OS X.
Automatically switching to curl if wget is not available, like on OS X, BSD, etc.