Remove use of fnmatch(), in favour of GPatternSpec.