Fixed install script to support client upgrade.