update sed command to run with sudo