The sed option -E is not supported in centos.  Change to -e