correct handling of package dependencies containing nuget

fixes #359