Tolerate non-GNU sed

I made small changes to how `sed` is called because the version used by Mac OS X (and other BSDs?) does not understand GNU's `-r` flag. Making these changes allows the `:Scry` command to work for me (where it failed before).