fixes for runlist ordering and for apt not being initialized on first run