Recursive file operations in Node.js