install-world.sh: only wait for the correct pid while waiting for Java downloads