if the config directory does not exist, try and create