fixed imports for auto update

- import shutil added to address potential global not found problem.