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
Merge pull request #365 from tas50/chomp

Remove newlines in CPU strings on Darwin