Use "sudo tee" instead of cat

This way I can generate the enter script if I need to.