fixes copying between cache and build