Fix up typos from r255963 in mtree Makefile.  BSD.debug.dist should be
iterated if present, and remove a stray .endif.

Approved by:	re (gjb)
Append the Git branch to the version string.

Approved by:	re (gjb)