Fix detection of serial from device