Minor change to JAVA_HOME calculation.