Windows fix for 2 digit com port numbers

Read, write now works on Windows and Linux and Mac OS X