Cycle detection also detect missing dependency