fix runit sequence

@mpuncel @petertseng integration test now works, lets preparer self-update
Yeah, it feels really weird to have half this logic in a ruby script and half here. I think I do want to port it after all.