Add cmake paths to module path in cache. Simplifies tests.