Added support for detecting JDK on Windows