Added ttree.cfg and changed rebuild accordingly.