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