pull tmp_dir to config, rename it to log_dir
import config first on __init__.py
Merge pull request #29 from sakti/develop

fix issue #26