Fix storing of last auto detected serial port.