Migrated Windows Java detection to OCaml