bug: rename options.tpldir to options.root