Fix path.exists in new version Node.js