Fix Mac build, Fix openSUSE build. (OS X (BSD) sed is a bit different than Linux sed.)