Add a workaround for shutil.rmtree problem on Windows