Create state directory if missing
Merge pull request #1 from bholst/master

Create state directory if missing