Check whether two file globs intersect