Fix generation of per-project depends.txt