fix version reporting (issue #6292)