Make serial command parsing handle \r\n

Looks bigger than it is due to indent change, use "git diff -w"!