small fixes on version parsing