Refactor fnmatch example file