Make setup.py install work in a fresh virtualenv

i.e. without dependencies already installed.
Merge pull request #446 from gthb/more-careful-setup.py-version-parse

Make setup.py install work in a fresh virtualenv