Use sed command compatible with BSD sed

During the FOSS4G conference I figured that our Makefile did not work on OSX. This fixes it, by using a sed command that is compatible with both BSD sed and GNU sed.