Make a call to IO#fsync to make sure our file data is persisted to disk when writing it.
This should guarantee that the file is ready when we go to serve it up.