Fixed sed invocation to work under MinGW

This makes it work on my machine under MinGW. Can someone test it on OSX?