Automate TPLNAME generation