Two bug fixes

Added async as a prerequisite in package.json
Modified the isExcluded function to check for the existence of settings.exclude before accessing it