Fix paper creation with non default template

The class file was copied before the paper directory was created, which
of course results in some problems that were silently ignored because no
logging was done...