Use @sysconfdir@ insted of  in cgi-bin.