METADIR variable creation before CM ver handling