[1297] Move creating temp directories to an earlier point