fix write of shares.conf