Added a check to DependencyManager to ensure directories are made.