add work_dir attribute and ensure the working dir exists
Merge pull request #4 from dwradcliffe/work_dir

add work_dir attribute and ensure the working dir exists