Uses the fs.exists method properly