det_depends now working (mostly) for single files!

However, if a directory with the same name as a "file root" is nested,
it doesn't handle correctly -- to be corrected in the next commit.