levenshtein fix for multiple Ruby versions