Fix detection of NUODB_ROOT.