[lnst] Fix "Using variable 'input_file' before assignment" error