EventFilter/Utilities fixes (Jul MWGR)

This pull request contains:
- improvment of FRD header handling between different versions (survive events smaller than v2 header)
- input source exit on deleted run directory
- micro-merging uses fwrite and fread instead of getc/putc