Update repos instead of deleting and cloning them.

Also replaced shell commands.
Also removed the config.xml copy step, because it's now unnecessary.