replace the variable in project versions (which are quasi-legal) with constants