cmake: Fix specification of Python version.

Fixes issue #272.