Fix single device installing.

If you have more than one device and install in one of them it sets the ENV
variable to that device. If you latter remove this device and try to install on
the other one it fails (waiting for device...) because theENV variable is not
reset.