dynamic TEX_DIR