Fix path.existsSync deprecation warning