Allow to pass CONFIG_DIR as an environment variable.