Use Born Shell(sh) instead of bash to archive portability. Introduce determine_jdk() function to search for valid JDK location. Minor tweaks.