Move config_dir to Engine