Put more rigour in gitflow script