Fixes GH-139: Temporary directory should be created automatically if it doesn't exist.