function getVersion(version) {
  const appVersion = version || app.getVersion();
  const ver = `v${appVersion.replace(/^v*/, '')}`;

  return ver;
}
Returns a version string with a `v` prefixed.

If the `version` provided is empty, current version
of the application is returned.

@param {string} version
Version