More clean way to create data directory

Prevent exception in Freicoin-Qt when running first time on the testnet.
(freicoind is not affected because it requires the config file to start)