Update definition of old tarballs.

We used to delete any old tarball in the same release directory. Now we
check for a matching repo / ref combination.