Fix build script to correctly generate the NuGet package