fixed unclear behavior of finding files in directory tree