Fixing generate gpb_version.hrl in Mac OS X

In Mac OS X the sed command not support `i\` gnu extension. Because of this `rebar compile` is broken.

This patch replaces a `i\` instruction for a more compatible option.