fix(lean-util): handle case where incomplete hierarchical name ends with "."
fix(lean-util): handle case where incomplete hierarchical name ends with "."

Close #311

johoelzl/lean,johoelzl/lean,leanprover/lean,soonhokong/lean-osx,fgdorais/lean,dselsam/lean,johoelzl/lean,soonhokong/lean,UlrikBuchholtz/lean,leodemoura/lean,rlewis1988/lean,avigad/lean,avigad/lean,leodemoura/lean,soonhokong/lean-osx,eigengrau/lean,UlrikBuchholtz/lean,levnach/lean,soonhokong/lean-windows,htzh/lean,levnach/lean,leodemoura/lean,soonhokong/lean-osx,johoelzl/lean,digama0/lean,digama0/lean,eigengrau/lean,johoelzl/lean,johoelzl/lean,dselsam/lean,avigad/lean,fgdorais/lean,javra/lean,leanprover/lean,fpvandoorn/lean,fgdorais/lean,dselsam/lean,eigengrau/lean,rlewis1988/lean,UlrikBuchholtz/lean,dselsam/lean,soonhokong/lean-osx,sp3ctum/lean,fpvandoorn/lean,UlrikBuchholtz/lean,fpvandoorn/lean2,digama0/lean,eigengrau/lean,soonhokong/lean,fpvandoorn/lean,fgdorais/lean,fpvandoorn/lean,avigad/lean,c-cube/lean,avigad/lean,sp3ctum/lean,htzh/lean,leodemoura/lean,leodemoura/lean,levnach/lean,soonhokong/lean,fpvandoorn/lean2,fpvandoorn/lean,soonhokong/lean-osx,javra/lean,c-cube/lean,leanprover/lean,dselsam/lean,Kha/lean,sp3ctum/lean,fgdorais/lean,leanprover-community/lean,rlewis1988/lean,c-cube/lean,eigengrau/lean,avigad/lean,levnach/lean,javra/lean,c-cube/lean,htzh/lean,soonhokong/lean-windows,soonhokong/lean,digama0/lean,leanprover-community/lean,sp3ctum/lean,Kha/lean,UlrikBuchholtz/lean,c-cube/lean,fpvandoorn/lean2,Kha/lean,Kha/lean,rlewis1988/lean,rlewis1988/lean,fpvandoorn/lean,levnach/lean,digama0/lean,digama0/lean,leanprover-community/lean,leanprover/lean,Kha/lean,htzh/lean,sp3ctum/lean,fpvandoorn/lean2,fpvandoorn/lean2,soonhokong/lean,leanprover-community/lean,leanprover/lean,javra/lean,soonhokong/lean-windows,fgdorais/lean,javra/lean,leanprover/lean,Kha/lean,soonhokong/lean-windows,leanprover-community/lean,rlewis1988/lean,leanprover-community/lean,leodemoura/lean,soonhokong/lean-windows,dselsam/lean,htzh/lean