by default, the three directories are searched relative to the compile-time datadir variable. it is set to /usr/share/zabbix. However the externalscripts alertscripts scripts are placed to /var/lib/zabbix.