Properly handle cases in which installation fails after untarring

In such cases, previously, rerunning did not trigger reinstall because the tar file was not marked as changed.
Now we move the tar aside teporarily for the duration of the installation, so that if it fails it will be copied again
and trigger a reinstallation