scan-adoc-refs: fix dependency computation (make it recusive)