Updates settings and strips newlines from tmp file.