Get rid of redundant inputs when parsing depfiles