21 improve scan serial output for linux

Should this perhaps be a separate function ScanSerialLinux ?