Fix pattern to handle symlinks properly

This repros #1113.  I'm not sure how to fix it yet; I have no idea how globs and symlinks interact.