Updated path.exists to fs.exists.
Fixed issue with requests.