Dev: use fputs instead of fwrite
Difficult to ignore the return value of fwrite with some older glibc, fputs does the job as well.