Added elimination step to det_depends

Elimination removes unused children of FILEREFs. TODO: Fix the
resulting filenames stored in the global set...