fix FindFiles

check is dir