find_file: code to find file plus cosmetic changes