Fix .todidnt directory not existing when saving cache.

Use mkdir_p instead of mkdir.
Bump version to 0.3.1.