Now findJavaCommand in lib.gradle is exposed and it is used by the other .gradle files.

Some little change to the gradle scripts.