code: func executablePath(name string) (string, error) {
  	if path, err := exec.LookPath(name); err == nil {
  		if _, err := os.Stat(path); err == nil {
  			return path, nil
  		}
  	}
  	return os.Executable()
  }
docs: // Lookup path for executable file