Fix ruby 1.9.3 failure from right-to-left detection fix