better logic for finding a JDK, vs just a JRE

@beso323