Fix issue with tty.* ports on mac os

This fixes the issue where some `tty.*` serial ports would not work correctly on mac os x. This should resolve that issue and work with all `cu.*` and `tty.*` serial ports.