Fix reading cpu id.

Thanks stasn77@github.