Update references to JRegistry for libraries folder. Fixes #4188