[PATCH v2 51/60] buildman: Move code to remove old outputs