if (this.capemgrDir == null) {
    var capemgr = this._findFile(CAPEMGR_DIR, /^bone_capemgr\.\d+$/);

    if (capemgr != null) {
      this.capemgrDir = CAPEMGR_DIR + "/" + capemgr;