Add fsyncs for newly restored files and several other little things