fix more broken logic regarding commit stati
only look at most recent status when avoiding duplicates

i was treating the commit statuses as a Set to avoid duplicates,
but that ignores the fact that rebuilds should prepend a new status
so that more recent results, even if already in the history,
are moved to the front