Fix delete the tmp directory

Replaced: os.path.rmtree() --> shutil.rmtree()

It's also valid for 6.16.x.