Fix to work with GNU sed

This will fix bootstrap script to work with GNU sed. 

(for example when you install sed formula with homebrew `--default-names` to have precedence over BSD one like: `brew install gnu-sed --default-names`)