ports listing, fix ports parsing

Only the first opening port by a process was used.