Fix parsing of path-style branch and tag names