fix remote-install cleanup