Add sudo/no sudo option to the cp command updating core files.