path.exists is deprecated in favor of fs.exists, so adding that to the file lib