Fixes #688 detect quote style and apply same style when writing out config
snapshot