Added serial port detection for linux.