[fix] improved version parsing check again (in case parsing fail of gives empty result) and check if @upstream is empty in resolt (as a manual modification could render the version unusuable)
[fix] improved version parsing check again (in case parsing fail of gives empty result) and check if @upstream is empty in resolt (as a manual modification could render the version unusuable)