Add config dir definition

Add the config dir directory to the configuration and have the configuration file depend on the folder's existence.