Small optimization in the serial port list routine

From 1.0.3 source