fix regex to work with x.x.x ruby defenition, not just x.x.x-*