config: support piping of config files

Reviewed-By: Fedor Indutny <fedor@indutny.com>