init: allow local packages to be deps of deps
init: allow local packages to be deps of deps

Fixes #1965

MichielDerhaeg/stack,anton-dessiatov/stack,AndreasPK/stack,phadej/stack,mrkkrp/stack,Heather/stack,sjakobi/stack,Heather/stack,Blaisorblade/stack,juhp/stack,AndrewRademacher/stack,sjakobi/stack,Fuuzetsu/stack,anton-dessiatov/stack,martin-kolinek/stack,phadej/stack,juhp/stack,deech/stack,martin-kolinek/stack,deech/stack,MichielDerhaeg/stack,AndreasPK/stack,Fuuzetsu/stack,AndrewRademacher/stack,mrkkrp/stack,Blaisorblade/stack