Check for Debian or Redhat based distribution, write to correct sysctl file