Fix a warning regarding usage of path.existsSync