Allow .stex files to be generated from scripts