Fix extension matching in compiler DAG
Fix extension matching in compiler DAG

Turns out this didn't work! Now it does. The check of edge acted as a
workaround that prevented clearing more files than necessary, but when
multiple output artifacts existed, it over-deleted them, apparently.

So now this is properly checked as a bit of logic and all tests keep
passing.

erlang/rebar3