Improve reading of version