Even if you change the installation directory, the definition files are goign to be in C drive. This cannot be changed by design, so when they revert back to the original image, it will eventually have the same issue.
Unfortunately I don't think you have a solution for this.