Add file directive to config.