The module cache escapes the test output dirs in this test. Since its default location maybe
composed of system and user related path this can cause problems in some builders (e.g. not
accessible paths inherited in a chroot environment).
Clean the test a bit by passing -fmodules-cache-path inside the test output dirs.
Nit: we could just put it inside DIR/modcache and not need a second substitution.