Avoid unnecessary processing of index.yml file

This fix ensures that only the index.yml of the detected jre is processed and avoids processing the index.yml of other jres.  It also removes an additional index.yml processing of the detected jre.