fix 'OK'response of scrupt, and add --dump_script option