Fix handling of multiple wildcards in excludes

Exclude patterns should correctly handle paths that contain multiple
wildcards. See spec in 746ed2a