darcs patch: add withFile and withBinaryFile (#966)