Add template directory option.