Use more compatible sed arguments.

"sed -r" is not supported on Solaris 9 (and probably others).