Added JAVA_HOME.
Changed behavior of install_script to overwrite existing file if target exists.