Fix 'exclude *.cfg' handling on Windows on Python 2.6

It was caused by a bug in distutils that was fixed for 2.7 only, in
http://hg.python.org/cpython/rev/47788c90f80b, as part of
http://bugs.python.org/issue6884.