fix exclusion of obspy/lib in code formatting test

exclusion patterns with fnmatch are not customizable enough for the
intended check. regex would work but then we have to allow for different
dir separator on windows/unix in regex check..
Merge remote-tracking branch 'upstream/releases'