add code for building stable packages

this code searches all tags and only builds if the tag matches a valid
emacs version string