Fix generation of hash in config.

Was generating with literal '\n' instead of newline