Added sync as a requirement in package.json
Modified isExcluded() to check for the existence of settings.exclude before accessing it