Changed path.exists to fs.exists in fs.filesystem.js