Write files synchronously.

This is a cheap hack.  What we really want to do is promise all the things.