code: def rulesdir(self, acc=None):
          
          rootdir = self.rootdir()
          rulesdir = self.get('rulesdir', acc=acc, default=[])
          return os.path.join(rootdir, rulesdir) \
              if rootdir and rulesdir else None
docs: Determine the rulesdir for the given account.
  
          Return None if not specified.