Fix file mode constants to allow append in MODE_OLDFILE.
Allows GuideML to generate single-file output.