fixed escaping of exclude pattern