Auto-install Java if apt-get or yum found