fixed an issue of adding an extra newline after matching $ in do_subst() of sed. changed tre slightly for QSE's own needs