add a simple fnmatch and glob implement