Exclude self-dependencies (e.g. submods), fixes infinite loop with MFR. Closes #7.