Implement persistent configuration using OS agnostic datadirs
check if did datadir exists
v0.4.0