tools: fix port number parsing in ndn-autoconfig client

Change-Id: Icb6405ff46e1af3e213350a1dd331393820624f2
refs: #1550