add option "auto_make_dir"
Merge pull request #2 from kan/auto-make-path

add option "auto_make_dir"