Paths passed to sed need to be escaped.
Didn't notice this before. This caused problems with set-pond and set-rtwd