Set permissions at end when upgrading

Hello,

to avoid a loop after upgrading, you need to set the ownership/permissions after replacing Specific folder.