Properly check for lastBuild on repo in routes