Long path support and Nuget Fix

Hi this is a patch to support directory creation over 260 char. 

I also fixed the reference to the Nuget.Core, to point to the packages folder, which was invalid and causing the project to load the Nuget.Core from the GAC