fixed findInFiles functionality