Export JAVA_HOME so it is used by child processes