modified ghgvc_script to generate valid csv