Fix install and update scripts