Added alternative method of finding out the serial port, since linux seems to behave differently.