Fix adsi target in main Makefile and check a variable properly (issue #7369 reported...