Merge pull request #385 from secretrobotron/master

bug fixes and local publishing accommodations
mkdirp in package.json