mk: Don't touch config.tmp or tmp/dist as root. Closes #13190

When running `make install` we are touching these files that can't
then be removed later.
auto merge of #13219 : brson/rust/dist-root, r=sfackler