tools/fw_env: use fsync to ensure that data is physically stored