Replace "sed -E" by "perl -p"

"sed -E" is not as widely available as I thought. "perl -p" is available everywhere I checked.