Updated and fixed update and upgrade commands.