Fix lookup for headport= and tailport=

Without this small fix headport= and tailport= would not be completed.
Also, write a better help text for those options.
Merge pull request #6 from bjornfor/port-fixes

Fix lookup for headport= and tailport=