add helper macro for stripping the last part of a version number