fixed directory error in findfiles