tools.get_config_dir() method, so that code doesn't repeats itself over everywhere