[ALOY-839] exclude files based on a pattern, e.g. .svn folders

exclude files based on pattern
Merge branch 'ALOY-839' of https://github.com/skypanther/alloy into ALOY-839
use regexs rather than underscore loops for better filtering and improved performance