Change how JAVA_HOME is set on OSX