Factor out unknown name, handle / in branch name, latest-commit sort