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