cruftily compiling RDINP against json_fortran

writing modN.inp, global.dat, atoms.dat, geom.dat, s02.dat as json