code: function getToolsId(tag){
    var toolsPkg = require('../../package.json');
    var toolsId = toolsPkg._id;
    var commit;
  
    if (!toolsId)
    {
      commit = fetchCommit(__dirname + '/../..');
      toolsId = (!tag ? toolsPkg.name + '@' : '') + toolsPkg.version;
    }
    else
    {
      if (tag)
        toolsId = toolsId.replace(/^.+\@/, '');
  
      if (toolsPkg._resolved)
      {
        var m = toolsPkg._resolved.match(/#(.{1,10})/);
        if (m)
          commit = m[1];
      }
    }
  
    if (commit)
      toolsId += tag
        ? '-dev-' + commit
        : ' (' + commit + ')';
  
    return toolsId;
  }
docs: Returns proper tools version. If dev version it adds to version commit hash.
  @param {boolean} tag Return version as tag, i.e. `x.x.x-dev-hash`. Otherwise returns `basisjs-tools@x.x.x (hash)`.
  @return {string} Current tools version.