Fix java detection for some PCs