server: fix issue with fileSync.js on mac