code: def get_absolute_tool_path(command):
      
      assert isinstance(command, basestring)
      if os.path.dirname(command):
          return os.path.dirname(command)
      else:
          programs = path.programs_path()
          m = path.glob(programs, [command, command + '.exe' ])
          if not len(m):
              if __debug_configuration:
                  print "Could not find:", command, "in", programs
              return None
          return os.path.dirname(m[0])
docs: Given an invocation command,
          return the absolute path to the command. This works even if commnad
          has not path element and is present in PATH.