Updated read_serial_port.c to fix reading on Linux hosts.