Take a basename of the config file to parse instead of an fd.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>