Fix bug in parsing chunks option, fix mainver finally (hopefully).