(PUP-3604) Rework handling of :ensure with a version

I've added it thusly.