Improved detection of ffi-locale gem.