fix build.sh on XDG_DATA_HOME and copy nuget.exe

The correct way to verify the variable is using -z.
To copy a file on bash you need to specify the filename also, not the
folder only.
Added execute permission to build.sh.
fix build.sh to use wget -O instead of -o