support --cwd with commander

fixes #326. 

I can submit a PR later this week that removes the dependency on minimist (that way the only options parser you are using is commander).