fix setupCmdContext() for subcommands (fixes #163)
Merge pull request #167 from cryptix/fixServeHttp

fix setupCmdContext() for subcommands