Fix handling of data_dir, etc_dir and log_dir

* Folders not being created if parameter value gets overwritten