Making the update script multi environment aware