docs: function getPlatVersionsFromFileSystem(projectRoot){
      var platforms_on_fs = cordova_util.listPlatforms(projectRoot);
      var platformVersions = platforms_on_fs.map(function(platform){
          var script = path.join(projectRoot, 'platforms', platform, 'cordova', 'version');
          return Q.ninvoke(child_process, 'exec', script, {}).then(function(result){
              var version = result[0];
  
              // clean the version we get back from the script
              // This is necessary because the version script uses console.log to pass back
              // the version. Using console.log ends up adding additional line breaks/newlines to the value returned.
              // ToDO: version scripts should be refactored to not use console.log()
              var versionCleaned = version.replace(/\r?\n|\r/g, '');
              return {platform: platform, version: versionCleaned};
          });
      });
  
      return Q.all(platformVersions);
  }