Patches runtime_dependencies in case dependency name is an array