sid: Fix file mode of fopen()