Fixes #1 : incorrect getExcludesPatterns method