Automatically determine next version