Stop inserting empty lines at end of .conf file each time it is rewritten

See: https://github.com/minetest/minetest/issues/1790