Auto upgrade extension script