[eclass] Fix ecm version calculation