build fails if ./dist folder is not existing

The default build (no args) fails if the dist folder is not existing

env: MacOSX 10.9.1, node v0.10.25