fix <title> to only display branch directory

OK, so it turns out basename() was required after all!