Update nupkg patching logic