function computeReleases(result) {
  if (!result.stdout) return null

  // Trim last breakline.
  const dirs = result.stdout.replace(/\n$/, '')

  // Convert releases to an array.
  return dirs.split('\n')
}
Compute the current release dir name.

@param {object} result
@returns {string}