Fix the update process: take existing protection keys

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>