support NuGet 2.1 custom packages path
TW-25191 add more tests and fix