gaia: Do not assume .sdf file extension in C and Fortran code

DAT_PAR/dat_par.h defines the .sdf extension.

Note that this does not fix the TCL code.