Working version of port listing on Linux.