Issue #390 sed/comment from contrib don't work on Solaris.

Solaris doesn't support -i and -r flags in sed.