Added linux implementation of list_ports. Added copyright and licence information.