[gem5-scripts] fix bug on CPU2006 check