[TIMOB-15818] Improved jdk lib java home detection.