Use readSettingsFile function. Fix so checkout can build on jenkins