also cache the dependency directory