webui: support branching with subdirs