treedrawing.py: fix bug in readVersionCookie

we were reading half a comment and crashing