Fixed version detector for easy_install, setup.py and cloned repository