Unified search method of java in latest-java-linux-detector.sh