Fix serial device detection when no device