Major surgery to set_osx_defaults.sh script

You'll notice what I did right away, no need to explain.