Replace dashes with underscores for version var name.