Fix handling of multiple wildcards in exclude patterns