Use more specific tag matching.

The tag matching in `last_tag_for` only matches on the beginning of the capistrano-deploytags-style tag, which causes false positives in repos with similar tags.

This updates the matching to more closely follow the tag style of capistrano-deploytags. The specs had a slightly different style, which is accommodated as well.