code: def _find_cmd(self, cmd):
          
          cdir = self.get_install_cassandra_root()
          if self.get_base_cassandra_version() >= 2.1:
              fcmd = common.join_bin(cdir, os.path.join('tools', 'bin'), cmd)
          else:
              fcmd = common.join_bin(cdir, 'bin', cmd)
          try:
              if os.path.exists(fcmd):
                  os.chmod(fcmd, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)
          except:
              common.warning("Couldn't change permissions to use {0}.".format(cmd))
              common.warning("If it didn't work, you will have to do so manually.")
          return fcmd
docs: Locates command under cassandra root and fixes permissions if needed