add config dir constant define to compat method