bugfix on sed -E options

Use -r instead of -E for sed extended regex. -r is GNU, -E is BSD, all
major BSD have a -r for comptability. -E seems to be available in GNU
sed since 4.2.

Thanks to Vincent Gross <vincent.gross@atasta.net> for the report.