Fixing version regex to accept dashes