use same directory for temp files as for log file
Merge pull request #14 from marshally/use_log_directory_for_temp_files

use same directory for temp files as for log file