Fix console log while listing serial ports