fix creation of tex.dir