CTDB: fix --logging/--logfile version string comparison
As per "VERSION" in the Samba/CTDB source tree, versions may have:
- a beta/rc/etc string immediately following the third version component + e.g. 4.0.0rc1
- a -VENDOR trailer + e.g. 4.0.0-VendorVersion
- a .GIT.$sha hash trailers + e.g. 4.0.0.GIT.1a2b3c4d
Trim any of these possible strings with sed prior to performing the
--logging/--logfile version comparison.
Fixes: https://github.com/ClusterLabs/resource-agents/issues/1185
Signed-off-by: David Disseldorp <ddiss@suse.de>