Regular expression match branch name

This will allow more flexibility and less changes to support new
OpenStack releases.

Change-Id: Iefa53c2b5a65071b4b8c2fbd2d89c0244b8762a3