Use `$(GIT) status --porcelain -uno` for this, it also detects added files.
I'm not 100% sure if it's safe to assume that untracked files won't modify dmd's build but it seems plausible.