tweaks to copy_config in build script