Fixed a bug in the logic that decides whether an archive needs tobe rebuilt.