Test if $JAVA_HOME is exported to subprocess