Set JAVA_HOME differently if /usr/libexec/java_home is not present.