[gem5] minor: fix bug of ommiting build_name when checking CPU 2006 outputs.