Osx script

This PR enables OSX usage in an identical way to Linux's. It presumes that `curl` is available as well.