update tscalc_d.sh append rm commands