Fix for temp directory not being created.

Minor update.