Fix JDK check.