changing how JAVA_HOME is resolved