Transform echo > to echo | sudo tee