Detect Java 11 JRE and not only JDK
Detect Java 11 JRE and not only JDK

- Use 'lib/modules' in order to detect a modern JDK
- With this change we can detect both JDK and JRE


Reviewers: Jia Zhai <zhaijia@apache.org>, Anup Ghatage <None>, Nicolò Boschi <boschi1997@gmail.com>

This closes #2436 from eolivelli/fix/support-jdk11-jre
apache/bookkeeper,apache/bookkeeper,apache/bookkeeper,apache/bookkeeper,apache/bookkeeper,apache/bookkeeper