Fix reading max_qg_version
Merge pull request #9 from pka/bug8928

Fix reading max_qg_version