Check different Java home directories for presence of JRE or JDK