Clean dependencies if requested