Fix JAVA_HOME on Mac