Fix bugs relating to virtual serial comms over USB