fix logic on selecting assemblies when setting up cache directories