When passing the configuration directory, fail as soon as possible.