Extend the stable tag search method.

Make it so that the stable regexp matches the tag and the group
specifies the version portion.

Should fix #1681