PR libfortran/62768 Use gfc_unit.filename also when HAVE_TTYNAME{_R} is not defined.