autodetect serial port