Improve gaia directory config.