Better support for github links

Github links that are the subdir of a known parent now fallback to the most
specific parent.