Added serial port detection on Mac OSX

Added code to detect serial port on Mac OSX.