Added function for saving system files via sudo and tee.