Fixed doubly defined JAVA_HOME.