correction & improvement

- correction of "Creating default object from empty value"
- mkdir() cache folder if not exists
Merge pull request #6 from pierre-r/master

Creating default object from empty value