Directory hierarchy builder utility for node.js