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