create config_dir if it doesn't exist