Don't require the distribution to have a reference to the test directory provider.
Fix using distribution under build via IntegrationTestBuildContext.