potentially fixed a problem that was causing unecessary .thm directories to be created.