Fixed getFile() for recursive serach