Fix bugs in Nuget targets file