Fix retrieving of checkout and build ids
With test plans, KCIDB_DUMPFILE_NAME has multiple build objects so grabbing the first one is incorrect.
With test plans, KCIDB_DUMPFILE_NAME has multiple build objects so grabbing the first one is incorrect.