Fix the path.existsSync deprecation warning