Added osx implementation to list_ports.