Implement fs.mkdir and fs.mkdirSync