refactoring exclude support so code is shared between msdeploy & filesystem