cut the patch number before a '-' too, to enable '7.11.0-pre1' to use