Use sed --version to determine correct format

Detect GNU vs BSD sed via the --version command (only defined in GNU
sed)

This lets Mac users who installed GNU coreutils (and presumably BSD
users) use raygun.