updated do_curve.sh to use xray and assume PATH rather than have a variable to set