...G...... [ZBXNEXT-497] added special handling of "C:\" case which should retain its backslash
...G...... [ZBXNEXT-497] reverted a change in r44677 that replaced _wstat() with zbx_stat(), reopened ZBX-7856 instead
...G...... [ZBXNEXT-497] improved error messages by making them complain about the exact argument system calls were invoked on