repack: handle optional files created by pack-objects