setup: fix version capture to support Python 2.6 as well