Fixed teamcity output generator script - it was running before the run record was created and never detecting when it did finally get created.