Fix #11834. Correct site-packages paths.

Patch by Bryce Verdier.