Don't run commands until all apps have been loaded

Change-Id: I6f4c192d059e48d1bbd1127b40b01024bae8d79c