#10510: Fix bug in forward port of 2.7 distutils patch.

Pointed out by Arfrever.