code: func validatePackage(tempKitePath, repoName string) (bundlePath string, err error) {
  	dirs, err := ioutil.ReadDir(tempKitePath)
  	if err != nil {
  		return "", err
  	}
  
  	if len(dirs) != 1 {
  		return "", errors.New("Invalid package: Package must contain only one directory.")
  	}
  
  	bundlePath = filepath.Join(tempKitePath, dirs[0].Name())
  
  	parts := strings.Split(repoName, "/")
  	if len(parts) == 0 {
  		return "", errors.New("invalid repo URL")
  	}
  
  	kiteName := strings.TrimSuffix(parts[len(parts)-1], ".kite")
  
  	_, err = os.Stat(filepath.Join(bundlePath, "bin", kiteName))
  	return bundlePath, err
  }
docs: // validatePackage does some checks on kite bundle and returns the bundle path.