Fix bug 1606 - Adding fs.sync() at startup