old_contents: def match(command, settings):
      return ('rm' in command.script
              and '--help' not in command.script
              and '--no-preserve-root' in command.stderr)
  
  
  def get_new_command(command, settings):
      return '{} --no-preserve-root'.format(command.script)
  
new_contents: def match(command, settings):
      return ('/' in command.script
              and '--no-preserve-root' not in command.script
              and '--no-preserve-root' in command.stderr)
  
  
  def get_new_command(command, settings):
      return '{} --no-preserve-root'.format(command.script)
  
subject: Update rm_root.py