Made version.py a bit more robust.