Fixed update script

Fixed rehost bug.
Fixed notification of upgrade.