Fix for settings data format

Change-Id: Ic61848df4339f5f4fe7501f0e1d362e44ce78774
Use /tmp for temp file

Change-Id: I435132e35e3cf00634bd279c84072005f03c2c63