Add osx-preferences.sh to save OS X preferences.