build: mozilla: re-work esr and release tags

(integrated from trunk branch change dbe8212 by Todd Whiteman <toddw@activestate.com>)