Adding config file support to specify destination directory.
Added support to set base dir.
Fixed bug where nodejs doesn't handle cyclic dependencies well if you overwrite module.exports.
Moved updating builds and deps to file module so changes to those files can be correctly handled.