Tweaks to cscript so that it runs in Stata 10