Replace in the correct file. Chown sooner

If the files don’t already exist, the ownership will be root as the
setup.sh is run sooner.