Added checks for invalid semvers