Cleanup serial port detection