updates install script to check for java [ci skip]