Refactor uncompress.
Finis JDK uncompress, installation and unpack.
Add JDK path and set JAVA_HOME, by making $jdk_dir global.