support subcommands on windows. Fixes #142
Merge pull request #173 from yiminghe/issue_142

support subcommands on windows. Fixes #142