Making sure template directories are in place