The check for stable branches needs to be more flexible about where
"stable/" appears in the names.
The version number computation needs to take into account trailing
zeros so we don't end up with invalid version numbers.
Change-Id: I3c9c82f85810f84ebeac20a4ae26eb31aa8c6f5d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>