escape spaces in JAVA_HOME

fix 3725