Helper function to get template directory name.