[eclass] Fix master branch calculation

Was caused by naming scheme 9999 -> 4.9999.