Support java executable located in `/opt/java8/jre/java` instead of `/opt/java8/java`