implement glob() to replace list()