Fixed an issue with shutil not being defined