Tickets/dm 1662

Yes, the issue there is that the BSD version of sed doesn't support '\n' in replacement strings. So I had to work around that by adding a \n literal using a $'aaa' bashism. It's horrible, I agree.