Publish: Improved handling of version ranges