libgfortran: Fix unwanted end-of-record by checking if seen_dollar.