query_config: use roverlay.util.fileio

This allows to read/write compressed files in --from-file mode.