DAET: fix file search logic