Patch module manager configuration before running modules.test. This makes the test build work with modules.copy=false.
Changed paths: