Fix for testnet dir not being created and leading to crash at start.