configure JAVA_HOME on OSX