fixes #308: fixes the missing fs-sync