Java install script tweaks