fix when JAVA_HOME is set on Windows #409