Improved error handling in the build of `settings.local.json`
Converted line endings to unix