Fix undefined name in purelib.py (#604)

diff --git a/python/pip_install/extract_wheels/lib/purelib.py b/python/pip_install/extract_wheels/lib/purelib.py
index aa1ed43..978e0f1 100644
--- a/python/pip_install/extract_wheels/lib/purelib.py
+++ b/python/pip_install/extract_wheels/lib/purelib.py
@@ -60,8 +60,8 @@
     for child in purelib_dir.iterdir():
         if child.is_dir():
             backport_copytree(src=child, dst=pathlib.Path(root_dir, child.name))
-        elif not pathlib.Path(root_dir, grandchild.name).exists():
+        elif not pathlib.Path(root_dir, child.name).exists():
             shutil.copy(
-                src=str(grandchild),
+                src=str(child),
                 dst=root_dir,
             )