Correct algorithm for tar generation

Everything works except when trying to complete postgresql.conf with new data.