Cleaned up osx list_ports implementation.