handle more than one local dependency level

required for e.g. pytables with:
python-tables-dbg -> python-tables -> python-tables-data