If you try to create a database configuration file through mamba-admin and for
some reason the 'config' is not present, it crashes.

This fixes this issue by creating the directory if it doesn't exist.
Fixed the issue with the parent already created before. Added test for it.
Fixed test for config_write
Merge pull request #12 from nicholasamorim/master

Fix for Issue with config directory not being present