updated list_files helper - added glob matching