don't mutate glob pattern, fixes #2