How to detect and identify name and number of serial ports in Linux using dmesg