Fixes https://github.com/certusone/wormhole/issues/305 The logic to do this seemingly simple task is hilariously complex due to the version string being attacker-controlled. Change-Id: Ia1758418a67c082595affe0b7f2bb801e9434733