'path.exists' has been replaced by 'fs.exists'.