Fix bug where we continue parsing version number after complaining it's not present, and crash (to incoming-pr)

This is #47, but rebased onto the incoming-pr branch