Fix JRUBY-7096 JAVA_HOME value corrupted