Remove newlines in CPU strings on Darwin

Strings weren’t being chomped.  Fixed spec to properly mock the output
with the newline to catch this