Add temp directory creation method