fix up the AC_CONFIG_MACRO_DIR check to work with sub-package