Update automatic update script to support new repository deploy design