Fix: Create directories needed in temp directory when processing with modules.