Fix searching localedef input on I18NPATH (BZ #16984)