Fail the whole script when nuget fails

Only tested it locally with `nuget: command not found`.