Move up the setting of CL_IMPL so the CL_DIR has access to the value.