Fix for generating metadata when a tool dependency definition sets multiple environment variables within a single <set_environment> tool dependency type.