Fix incorrect JAVA_HOME on Mac