Try to detect sed -r/-E portably