Minor fixes that clang warns about

Clang complains about different things to gcc; MacOS defaults to
clang.
Trim strings in waitForOk

Trim some diagnostic strings to prevent stray \r's in the log
Poll grbl state during send file

Poll the grbl state when sending a file. We might want to make this less
aggressive later.