Fixed file search logic to check recursively.