Changed checkAllAppsFinished in cloud to more efficient approach.
(currently only for schedulerC, because of missing FIFO in schedulerA
and schedulerB)