finished env script for yosemite