Add support for a more general branch naming scheme

Signed-off-by: xchs <github@gmx.net>