fix bug in script generation- append to log file, not truncate.
fix bug in script generation- append to log file, not truncate.

gdhungana/desispec,gdhungana/desispec,timahutchinson/desispec,timahutchinson/desispec,desihub/desispec,desihub/desispec