Tell which directory was problematic
Try to create data directory with parents (fix #226)
Merge pull request #276 from ferki/issue/226

Improve data directory handling