Fix bug introduced in commit fd80aa3.

As far as I know the bug only affects use of setup.py, so shouldn't be a
problem to most users.