Fixing version ref to handle tagging and increasing versions