Refactored if-0install-version check