[TASK] Improve version definition in decode_sphinx_inventory.py