Don't consider prereleases for -upgrade (fixes #436)