Fix version-cutting regex