Deploy script permission fix