Ensure that older TC builds are not deployed

In the situation where a TeamCity build that starts later but finishes earlier
than another build of the same project, we need to check against all of the
TeamCity builds in order to ensure we do not deploy an earlier version.