interp: move pattern crunching out of globDir
interp: move pattern crunching out of globDir

That means that if we're traversing multiple directory trees, we will
still translate and compile the pattern only once.

mvdan/sh,mvdan/sh,mvdan/sh,mvdan/sh