Use distutils' own glob_to_re for pattern handling