Directory utils for Node.js