update the install script to support delete an old version