Now that I look at it, we should just put a `mkpath(destpath)` as the first line of `copy_config`, and then we can delete the other calls to `mkpath`.