Fix thesis file substitution