replace: Fix checking for config.h #define in replace.h