Fix regexp for replacing versions.