Added Fix for appsettings, if we can not create the file