Fix `make` in OSX by using `perl` instead of `sed` for a text replace.

According to [1], there's no easy way to make it work on both BSD and
GNU sed.

[1]: http://stackoverflow.com/questions/2320564/variations-of-sed-between-osx-and-gnu-linux

---
(I don't know if depending on perl for this is a good idea or not.)