Fix version detection in setup.py