Made a small adjustment to findFile