Only read tmp_file if it's readable.