Fixed two bugs:
- Open file in parser, if path is given
- Fixed null_terminate function (Fixing messages about unknown data format in second unit test)