Fix for CONFIG_DIR using $APP_DIR before it was set

It looks like a few things got reorganised, and the `CONFIG_DIR` value will end up being blank by default, instead of `$APP_DIR`. This is probably not the intended behaviour, as otherwise the variable is unused.