docs: function getInstalledPlatformVersion(projectPath, platform) {
      var platformJsonPath = path.join(projectPath, 'platforms', 'platforms.json')
      if (fileExistsSync(platformJsonPath)) {
          var platformsJson = require(path.join(projectPath, 'platforms', 'platforms.json'));
          return Q(platformsJson[platform]);
      } else {
          return exec(path.join(projectPath, 'platforms', platform, 'cordova', 'version')).then(function (result) {
              return result[0].replace(/\r?\n|\r/g, '');
          });
      }
  }