Fix self-update permissions