setup.py: Improve get_version()

Print an error message if version cannot be determined.