Support setting port in command line args for credentials helper. Fixes #343