Fix 'build' method in 'lib/node.js'