...G...PS. [ZBX-7856] use zbx_stat() instead of stat for Windows compatibility