Added patch to better try to set the JVM_HOME environment variable.