Modified BuildPackage to create the PackageManager using the same constructor as nuget pack, to work around a potential XML output serialization issue when using empty subdirectories; upgrade to NuGet 2.7