Fix problem with dashes and underscores in branch/tag names