Export JAVA_HOME correctly