escape . in ruby version regex check