setup.py: improve error handling for version.py