Fix windows support

According to https://www.zabbix.com/documentation/2.0/manual/appendix/config/zabbix_agentd_win and my recent experience... windows agent need file and not a folder.

I find an ugly hack to support this.