making readsync example less brittle via magic file