[TIMOB-16365] Fixed command and hook loading when comparing the minimum ...

...required CLI version in which the version has a -beta suffix.