config: write `algorithm` to config if not default.

Closes https://github.com/veox/sgminer/issues/175