Combine cli#readConfigFileSync and cli#readCustomConfigFileSync into cli#readFile.