update write_scripts() for slurm convergence script