reduced code by ~30 lines

Changed script so users not on Yosemite can try this but it’s a use at
your own risk situation.

Removed overly long version checking.

Refactored repeated code.

Renamed some stuff.

Added a few comments.