fix JAVA_HOME not getting exported