Corrected detection of installed JRE version.