path.exists is deprecated.

Replacing path.exists with fs.exists as path.exists is deprecated.