[java] correct the path conversion under the cygwin env.