Add support for earlier Git versions

This makes it possible to use hggitforge on Debian Stretch.

git branch --format parameter is also too recent, thus replacing with git for-each-ref command.

Merge request reports