Automated template directory creation.