Write the meta file first to tmp file, then rename. I want to keep
sure the meta file is intact (up to the last successfull meta file
update) even if there's error while writing it (later).