Fix handling of 'N' lines in command handling and Write to SD command.

Fixes case where a command line includes an 'N' (e.g., N117) but does
not use a checksum. Also fixes handling of Write To SD function checksum
handling.