[COOK-2989] - Java cookbook fails, when running update-java-alternatives