Set JAVA_HOME, when available