First working implementation of glob.