Adding CURL compliant OSX version of download script.