eliminate moddir and incdir from search symbols in test-declaration script